From: Guido Günther Date: Sun, 4 Jan 2026 12:39:05 +0000 (+0100) Subject: mixer-control: Don't emit output-update on default-sink set X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2^2^2^2^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ee44e749c95ecfbd56ee5a369667f18cdda7c52b;p=gnome-shell.git mixer-control: Don't emit output-update on default-sink set Don't emit the signal when setting. It will be emitted when the sink actually changes. This makes things consistent with switching the default source. Signed-off-by: Guido Günther Origin: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/merge_requests/31 Bug: https://gitlab.gnome.org/GNOME/libgnome-volume-control/-/issues/34 Bug-Debian: https://bugs.debian.org/1126514 Applied-upstream: gnome-shell 50, commit:798230599950607ec285daecd070f5bcb28580e4 Gbp-Pq: Topic libgvc Gbp-Pq: Name mixer-control-Don-t-emit-output-update-on-default-sink-se.patch --- diff --git a/subprojects/gvc/gvc-mixer-control.c b/subprojects/gvc/gvc-mixer-control.c index 7cdb9092e..e5b6ca969 100644 --- a/subprojects/gvc/gvc-mixer-control.c +++ b/subprojects/gvc/gvc-mixer-control.c @@ -617,14 +617,7 @@ gvc_mixer_control_change_output (GvcMixerControl *control, if (!gvc_mixer_ui_device_has_ports (output)) { g_debug ("Did we try to move to a software/bluetooth sink ?"); - if (gvc_mixer_control_set_default_sink (control, stream)) { - /* sink change was successful, update the UI.*/ - g_signal_emit (G_OBJECT (control), - signals[ACTIVE_OUTPUT_UPDATE], - 0, - gvc_mixer_ui_device_get_id (output)); - } - else { + if (!gvc_mixer_control_set_default_sink (control, stream)) { g_warning ("Failed to set default sink with stream from output %s", gvc_mixer_ui_device_get_description (output)); }